<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>

    <script>
       function logError (error){
           debugger;
           if(error && error.hasOwnProperty('message')){
             alert(error.name  + "||" +  error.message);
           } else {
             alert(error);
           }
       };
       navigator.webkitPersistentStorage.requestQuota(1024*1024, function(grantedBytes) {
           window.webkitRequestFileSystem(window.PERSISTENT,grantedBytes,function(fs){
               fs.root.getDirectory('007slm__testDocument',{create:true},function(entry){
                   entry.getDirectory('test1',{create:true},function(entry){
                       alert('创建test1目录成功' + entry.fullPath);
                       entry.remove(function(entry){
                           debugger;
                           alert('删除test1目录成功');
                       }, logError);
                   },logError);
               },logError);
           },logError);
       },logError);

    </script>
</head>
<body>

</body>
</html>